/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Tela;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Thalyson
 */
public class Tela_PrincipalADM extends javax.swing.JFrame {

    /**
     * Creates new form Tela_Principal
     */
    public Tela_PrincipalADM() {
        initComponents();
        setSize(1210, 700);
        setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("E-KEY - Tela Principal - Administrador");
        setResizable(false);
        getContentPane().setLayout(null);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoB.png"))); // NOI18N
        jButton2.setToolTipText("Bloco B");
        getContentPane().add(jButton2);
        jButton2.setBounds(350, 40, 200, 170);

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoC.png"))); // NOI18N
        jButton3.setToolTipText("Bloco C");
        getContentPane().add(jButton3);
        jButton3.setBounds(660, 40, 200, 170);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoD.png"))); // NOI18N
        jButton4.setToolTipText("Bloco D");
        getContentPane().add(jButton4);
        jButton4.setBounds(970, 40, 200, 170);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoI.png"))); // NOI18N
        jButton5.setToolTipText("Bloco I");
        getContentPane().add(jButton5);
        jButton5.setBounds(40, 440, 200, 170);

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoK.png"))); // NOI18N
        jButton6.setToolTipText("Bloco K");
        getContentPane().add(jButton6);
        jButton6.setBounds(660, 440, 200, 170);

        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoJ.png"))); // NOI18N
        jButton7.setToolTipText("Bloco J");
        getContentPane().add(jButton7);
        jButton7.setBounds(350, 440, 200, 170);

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoH.png"))); // NOI18N
        jButton8.setToolTipText("Bloco H");
        getContentPane().add(jButton8);
        jButton8.setBounds(970, 240, 200, 170);

        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoG.png"))); // NOI18N
        jButton9.setToolTipText("Bloco G");
        getContentPane().add(jButton9);
        jButton9.setBounds(660, 240, 200, 170);

        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoF.png"))); // NOI18N
        jButton10.setToolTipText("Bloco F");
        getContentPane().add(jButton10);
        jButton10.setBounds(350, 240, 200, 170);

        jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoE.png"))); // NOI18N
        jButton11.setToolTipText("Bloco E");
        getContentPane().add(jButton11);
        jButton11.setBounds(40, 240, 200, 170);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoL.png"))); // NOI18N
        jButton1.setToolTipText("Bloco L");
        getContentPane().add(jButton1);
        jButton1.setBounds(970, 440, 200, 170);

        jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/BlocoA.png"))); // NOI18N
        jButton12.setToolTipText("Bloco A");
        getContentPane().add(jButton12);
        jButton12.setBounds(40, 40, 200, 170);

        jLabel1.setBackground(new java.awt.Color(213, 156, 139));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/Fundo E-Key.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 1210, 680);

        jMenu1.setText("E-KEY");

        jMenuItem1.setText("Cadastrar Usuário");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuItem2.setText("Cadastrar Solicitante");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
                Tela_CadastrarUsuario tcu = null;
        try {
            tcu = new Tela_CadastrarUsuario();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_PrincipalADM.class.getName()).log(Level.SEVERE, null, ex);
        }
                tcu.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
                Tela_CadastrarSolicitante tcs = null;
        try {
            tcs = new Tela_CadastrarSolicitante();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_PrincipalADM.class.getName()).log(Level.SEVERE, null, ex);
        }
                tcs.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalADM.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalADM.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalADM.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalADM.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Tela_PrincipalADM().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    // End of variables declaration//GEN-END:variables
}
